package com.atguigu.service;

import com.atguigu.entity.PageResult;
import com.atguigu.pojo.TravelGroup;
import com.atguigu.pojo.TravelItem;

import java.util.List;

public interface TravelGroupService {

    List<TravelItem> getGroupItem();

    void add(TravelGroup travelGroup,Integer[] travelItemIds);

    void addSetGroupItem(Integer travelGroup_id ,Integer[] travelItemIds);

    PageResult get(Integer currentPage,Integer pageSize,String queryString);

    void delete(Integer id);

    int selectGroupItem(Integer id);

    TravelGroup selectGroupId(Integer id);

    List<Integer> findTravelItemIdByTravelgroupId(Integer id);

    void update(TravelGroup travelGroup,Integer[] travelItemIds);
}
